package com.qingfeng.core.entity.qingfeng;

import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 余额明细
 * @author:LWY
 * @date: 2017/11/25 16:25
 * @modified:
 */
public class BalanceDetail implements Serializable {
    @Id
    private String id;

    /**
     * 用户id
     */
    private String user;
    /**
     * 明细描述
     */
    private String descrip;
    /**
     * 金额
     */
    private BigDecimal amount;
    /**
     * 余额
     */
    private BigDecimal balance;
    /**
     * 时间
     */
    private Date createTime;
    /**
     * 类型模块（1:任务消费、2：任务佣金、3：提现。后续扩展）
     */
    private Integer module;
    /**
     * 所属模块数据id（如任务id、提现id）
     */
    private String dataId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getDescrip() {
        return descrip;
    }

    public void setDescrip(String descrip) {
        this.descrip = descrip;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getModule() {
        return module;
    }

    public void setModule(Integer module) {
        this.module = module;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }
}
